import com.zhaohui.dao.UserDao;
import com.zhaohui.entity.User;
import org.junit.Test;

import java.sql.SQLException;
import java.util.List;

public class UserText {
    @Test
    public void test001(){
        UserDao dao = new UserDao();
        try {
            List<User> all = dao.findAll();
            for (User user:all){
                System.out.println(user.getAcc());
            }
        } catch (SQLException e) {
            e.printStackTrace();
        }
    }


}
